package homework01;

public class Demo {
    public static void main(String[] args) {
        Rectangle rect1 = new Rectangle(5.0, 10.0);
        Rectangle rect2 = new Rectangle(5.0, 10.0);
        Rectangle rect3 = new Rectangle(4.0, 6.0);

        rect1.printlnfo();
        rect2.printlnfo();

        System.out.println("rect1 == retc2: " + rect1.equals(rect2));
        System.out.println("rect1 == retc3: " + rect1.equals(rect3));
    }
}
